package Algorithm.Lambda;

import java.util.Arrays;

/**
 * ClassName:LambdaText001
 * Package:Algorithm.Lambda
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/2/4-18:53
 * @Version:v1.0
 */
public class LambdaText001 {
    public static void main(String[] args) {
        Integer[] arr = {2, 3, 5, 1, 6, 8, 7, 9};
        Arrays.sort(arr,(Integer o1, Integer o2)->{
                return o2-o1;

        });
        System.out.println(Arrays.toString(arr));
    }
}
